<form id="send-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="user/user/send">
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('接收人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label for="row[receive]-1">
                <input type="radio" name="row[receive]" id="row[receive]-1" checked value="1"> 指定个人
            </label>
            <label for="row[receive]-1">
                <input type="radio" name="row[receive]" id="row[receive]-2" checked value="2"> 指定职务
            </label>
        </div>
    </div>
    <div class="form-group" data-favisible="receive=1">
        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('用户列表')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-list"  class="form-control selectpage" name="row[uid]" type="text" value="" data-field="username" data-source="user/user/index" placeholder="{:__('上方所选按钮为个人时为必填')}" autocomplete="new-password" />
        </div>
    </div>
    <div class="form-group" data-favisible="receive=2">
        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('职务列表')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-list"  class="form-control selectpage" name="row[job_id]" type="text" value="" data-field="name" data-source="job/sendindex" placeholder="{:__('上方所选按钮为职务时为必填')}" autocomplete="new-password" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-joinip" class="control-label col-xs-12 col-sm-2">{:__('标题')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-joinip" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
